<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

use think\facade\Env;

return [
    // 驱动方式
    'type'   => Env::get('cache.type', 'redis'),

	// 服务器地址
	'host'       => Env::get('cache.host', 'localhost'),
	'port'       => Env::get('cache.port', '6379'),
	'password'   => Env::get('cache.password', ''),
	// 缓存有效期 0表示永久缓存
	'expire'=>  Env::get('cache.expire', 0),
	// db
	'select'=>  Env::get('cache.select', 0),
	// 缓存前缀
	'prefix'=>  Env::get('cache.prefix', ''),
	'timeout'    => 0,
	'persistent' => false,
];
